package com.H1023.service;

import com.H1023.dao.RemandMapper;
import com.H1023.pojo.Lend;
import com.H1023.pojo.Reader;
import com.H1023.pojo.Remand;

import java.util.List;

public class RemandServiceImpl implements RemandService{
    private RemandMapper remandMapper;

    public void setRemandMapper(RemandMapper remandMapper) {
        this.remandMapper = remandMapper;
    }





    public List<Lend> selectLenderById(Lend lend) {
        return remandMapper.selectLenderById(lend);
    }


    public int updateBookCount(int bookid) {
        return remandMapper.updateBookCount(bookid);
    }


    public int updateLendState(Lend lend) {
        return remandMapper.updateLendState(lend);
    }


    public int updateRemandDate(Lend lend) {
        return remandMapper.updateRemandDate(lend);
    }


    public int deleteLendNote(Lend lend) {
        return remandMapper.deleteLendNote(lend);
    }



    public Reader selectReaderById(int readerId) {
        return remandMapper.selectReaderById(readerId);
    }





}
